<?php
ini_set('error_reporting', 6143);
ini_set('display_errors','1');
define('IN_LC', true);
define('MM_ID', 4);

include_once("validate.php");


$done = false;
// are we showing an actual profile?
if(isset($_GET['go']))
{
	// Create query
	$q = "SELECT user_id, user_drivername FROM phpbb_users WHERE user_drivername != ''";
			
	
	// Run query
	$res = $db->sql_query($q);
	while ( $row = $db->sql_fetchrow($res)  )
	{
		$q_new = "INSERT INTO bb_profile_fields_data VALUES(" . $row['user_id'] . ", '" . $row['user_drivername'] . "')";
		$db->sql_query($q_new);
		echo $q_new . '<br>';
	}
}

echo $db->num_queries;
?>